package com.liwei.lwmail.member.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.liwei.common.utils.PageUtils;
import com.liwei.lwmail.member.entity.MemberEntity;
import com.liwei.lwmail.member.exception.PhoneNumberExistException;
import com.liwei.lwmail.member.exception.UsernameExistException;
import com.liwei.lwmail.member.vo.MemberLoginVo;
import com.liwei.lwmail.member.vo.MemberRegisterVo;
import com.liwei.lwmail.member.vo.SocialUser;

import java.util.Map;

/**
 * 会员
 *
 * @author liwei
 * @email 1348501591@qq.com
 * @date 2021-01-25 16:25:29
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void register(MemberRegisterVo member);

    void checkUsernameUnique(String username) throws UsernameExistException;

    void checkPhoneNumberUnique(String phoneNumber) throws PhoneNumberExistException;

    MemberEntity login(MemberLoginVo vo);

    MemberEntity login(SocialUser socialUser) throws Exception;
}

